import request from "@/router/axios";
import { baseUrl } from "@/config/env";

// 添加班主任
export function addClassTeacher(data) {
  return request({
    url: baseUrl + "/pc/class-teacher",
    method: "post",
    data
  });
}

//获取班主任班级关联信息
export function getClassTeacher(data) {
  return request({
    url: baseUrl + "/pc/class-teacher",
    method: "get",
    params: data
  });
}

//删除班主任班级关联信息
export function deleteClassTeacher(data) {
  return request({
    url: baseUrl + "/pc/class-teacher",
    method: "delete",
    data
  });
}

//更新班主任班级关联信息
export function updateClassTeacher(data) {
  return request({
    url: baseUrl + "/pc/class-teacher",
    method: "put",
    data
  });
}

//班主任查询班级
export function byTeacherKey(data) {
  return request({
    url: baseUrl + "/pc/class-teacher/byTeacherKey",
    method: "get",
    data
  });
}